package com.sky.service;

import com.sky.DTO.EmployeeDTO;
import com.sky.dto.EmployeeLoginDTO;
import com.sky.dto.EmployeePageQueryDTO;
import com.sky.dto.PasswordEditDTO;
import com.sky.entity.Employee;
import com.sky.vo.pageResultVO;
import org.springframework.stereotype.Service;


public interface EmployeeService {

    /**
     * 员工登录
     * @param employeeLoginDTO
     * @return
     */
    Employee login(EmployeeLoginDTO employeeLoginDTO);

    void save(EmployeeDTO employeeDTO);

    /**
     * 分页查询员工
     * @param employeePageQueryDTO
     * @return
     */
    pageResultVO<Employee> page(EmployeePageQueryDTO employeePageQueryDTO);

    void updateStatus(Integer status, Long id);

    void update(EmployeeDTO employeeDTO);

    Employee get(Long id);

    void delete(Long id);

    void editPassword(PasswordEditDTO passwordEditDTO);


}

